/// total : 4
/// rows : [{"d":1,"tokenAmount":100,"moneyAmount":258,"delFlag":0,"version":4}]
/// code : 200

class Species {
  Species({
      int? total, 
      List<Rows>? rows, 
      int? code,}){
    _total = total;
    _rows = rows;
    _code = code;
}

  Species.fromJson(Map<String, dynamic> json) {
    _total = json['total'];
    if (json['rows'] != null) {
      _rows = <Rows>[];
      json['rows'].forEach((v) {
        rows!.add(Rows.fromJson(v));
      });
    }
    _code = json['code'];
  }
  int? _total;
  List<Rows>? _rows;
  int? _code;

  int? get total => _total;
  List<Rows>? get rows => _rows;
  int? get code => _code;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total'] = _total;
    if (_rows != null) {
      map['rows'] = _rows?.map((v) => v.toJson()).toList();
    }
    map['code'] = _code;
    return map;
  }

}

/// d : 1
/// tokenAmount : 100
/// moneyAmount : 258
/// delFlag : 0
/// version : 4

class Rows {
  Rows({
      int? d, 
      int? tokenAmount, 
      int? moneyAmount, 
      int? delFlag, 
      int? version,}){
    _id = d;
    _tokenAmount = tokenAmount;
    _moneyAmount = moneyAmount;
    _delFlag = delFlag;
    _version = version;
}

  Rows.fromJson(Map<String, dynamic> json) {
    _id = json['id'];
    _tokenAmount = json['tokenAmount'];
    _moneyAmount = json['moneyAmount'];
  }
  int? _id;
  int? _tokenAmount;
  int? _moneyAmount;
  int? _delFlag;
  int? _version;

  int? get id => _id;
  int? get tokenAmount => _tokenAmount;
  int? get moneyAmount => _moneyAmount;
  int? get delFlag => _delFlag;
  int? get version => _version;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['tokenAmount'] = _tokenAmount;
    map['moneyAmount'] = _moneyAmount;
    map['delFlag'] = _delFlag;
    map['version'] = _version;
    return map;
  }

}